﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessLayer;

namespace PresentationLayer
{
    public partial class TermiActoObra : Form
    {
        public TermiActoObra()
        {
            InitializeComponent();
        }

        private void Conclui_Click(object sender, EventArgs e)
        {
            this.textDep.SelectAll();
            this.textHoras.SelectAll();
            this.textIdAct.SelectAll();
            this.textIdObr.SelectAll();
            this.textOfic.SelectAll();
            if (ActoActions.TerminaActo(this.textIdObr.SelectedText, this.textIdAct.SelectedText,
                this.textOfic.SelectedText, this.textDep.SelectedText, ApplicationData.IdFuncionario, this.textHoras.SelectedText))
                this.Close();

        }
    }
}
